
" ==== 初始化 ====
if exists('g:deepseek#enabled') && g:deepseek#enabled
    " 定义用户命令
    call deepseek#Enable()
endif

augroup DeepSeekIntegration
    autocmd!
    autocmd FileType markdown,python,vim,javascript,typescript,go 
                \ setlocal omnifunc=deepseek#Complete
augroup END

command! DeepseekMonitor call deepseek#monitor#ToggleWindow()
command! DeepseekOpenLog call deepseek#log#open()
command! DeepseekEnable call deepseek#Enable()

if !hasmapto('<F8>')
    nnoremap <silent> <F8> :DeepseekMonitor<cr>
endif

if !hasmapto('<F9>')
    nnoremap <silent> <F9> :DeepseekOpenLog<cr>
endif
